3.25.73 \(\int \frac {1}{a+b x^n} \, dx\) [2473]

Optimal. Leaf size=24 \[ \frac {x \, _2F_1\left (1,\frac {1}{n};1+\frac {1}{n};-\frac {b x^n}{a}\right )}{a} \]

[Out]

x*hypergeom([1, 1/n],[1+1/n],-b*x^n/a)/a

________________________________________________________________________________________

Rubi [A]
time = 0.00, antiderivative size = 24, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {251} \begin {gather*} \frac {x \, _2F_1\left (1,\frac {1}{n};1+\frac {1}{n};-\frac {b x^n}{a}\right )}{a} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(a + b*x^n)^(-1),x]

[Out]

(x*Hypergeometric2F1[1, n^(-1), 1 + n^(-1), -((b*x^n)/a)])/a

Rule 251

Int[((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[a^p*x*Hypergeometric2F1[-p, 1/n, 1/n + 1, (-b)*(x^n/a)],
x] /; FreeQ[{a, b, n, p}, x] &&  !IGtQ[p, 0] &&  !IntegerQ[1/n] &&  !ILtQ[Simplify[1/n + p], 0] && (IntegerQ[p
] || GtQ[a, 0])

Rubi steps

\begin {align*} \int \frac {1}{a+b x^n} \, dx &=\frac {x \, _2F_1\left (1,\frac {1}{n};1+\frac {1}{n};-\frac {b x^n}{a}\right )}{a}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.01, size = 24, normalized size = 1.00 \begin {gather*} \frac {x \, _2F_1\left (1,\frac {1}{n};1+\frac {1}{n};-\frac {b x^n}{a}\right )}{a} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(a + b*x^n)^(-1),x]

[Out]

(x*Hypergeometric2F1[1, n^(-1), 1 + n^(-1), -((b*x^n)/a)])/a

________________________________________________________________________________________

Maple [F]
time = 0.04, size = 0, normalized size = 0.00 \[\int \frac {1}{a +b \,x^{n}}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(a+b*x^n),x)

[Out]

int(1/(a+b*x^n),x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(a+b*x^n),x, algorithm="maxima")

[Out]

integrate(1/(b*x^n + a), x)

________________________________________________________________________________________

Fricas [F]
time = 0.48, size = 11, normalized size = 0.46 \begin {gather*} {\rm integral}\left (\frac {1}{b x^{n} + a}, x\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(a+b*x^n),x, algorithm="fricas")

[Out]

integral(1/(b*x^n + a), x)

________________________________________________________________________________________

Sympy [C] Result contains complex when optimal does not.
time = 0.36, size = 32, normalized size = 1.33 \begin {gather*} \frac {x \Phi \left (\frac {b x^{n} e^{i \pi }}{a}, 1, \frac {1}{n}\right ) \Gamma \left (\frac {1}{n}\right )}{a n^{2} \Gamma \left (1 + \frac {1}{n}\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(a+b*x**n),x)

[Out]

x*lerchphi(b*x**n*exp_polar(I*pi)/a, 1, 1/n)*gamma(1/n)/(a*n**2*gamma(1 + 1/n))

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(a+b*x^n),x, algorithm="giac")

[Out]

integrate(1/(b*x^n + a), x)

________________________________________________________________________________________

Mupad [B]
time = 1.24, size = 25, normalized size = 1.04 \begin {gather*} \frac {x\,{{}}_2{\mathrm {F}}_1\left (1,\frac {1}{n};\ \frac {1}{n}+1;\ -\frac {b\,x^n}{a}\right )}{a} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(a + b*x^n),x)

[Out]

(x*hypergeom([1, 1/n], 1/n + 1, -(b*x^n)/a))/a

________________________________________________________________________________________